function NotificationView(div) {

	var self = this;
	this.cleanTimer = null;

	this.show = function(message, showProgress, timeout) {
		if(this.cleanTimer != null) {
			clearTimeout(this.cleanTimer);
		}
		var html = '<table class="content-panel" width="100%"><tr><td>' + message + '</td>';
		if(showProgress) {
			html += '<td align="right"><img src="images/ajax_loading.gif"/></td>';
		}
		html += '</tr></table>';
		$(div).html(html);
		if(timeout > 0) {
			this.cleanTimer = setTimeout(function() { self.clean(); }, timeout);
		}
		//todo: add posibility to close notification
	};

	this.clean = function() {
		$(div).html('');
	};
};